package com.zjt.entity.product;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: AM5:28
 * 产品信息表    其实只存某类的产品   条形码唯一。
 * To change this template use File | Settings | File Templates.
 */

import com.zjt.entity.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_product_info")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ProductInfo extends BaseEntity {
    private String codeValue;//条形码    比gtin少一位
    private String codeType;//类型  EAN-13等

    private String gtin; //全球唯一标识,14位数字
    private String itemName;   //商品名称
    private long brandId; //商标名称    itemName与specification组合起来就是商品标题
    private String specification;  //产品规格
    private String shortDescription; //产品短描述
    private String description; //产品描述
    private String height;    //外包装高度
    private String width;  //外包装宽度
    private String depth; //包包装深度
    private String netContent;//净含量
    private String grossWeight; //毛重
    private String netWeight; //净重
    private String packagingTypeCode;// 包装类型代码
    private String packagingMaterialCode;   //包装材料代码q
    private String classCode; //产品分类代码
    private String extension; //基础属性之外的其他属性扩展

    private Integer productMaxIndex = 1;//产品数据最新序号，主要用于二维码生成，可以用来标识该产品下生成多少个二维码
    //将来扩展参数等，例如ita8的产品参数表

    //private long factoryId;//厂家信息
    private int codeValueStatus = -1;//条码状态 默认为-1

    //0:经查,该商品条码未在中国物品编码中心注册,
    //1:经查,该商品条码已在中国物品编码中心注册
    //2:经查,该商品已在中国物品编码中心注册，但商品信息未按规定通报
    //3:经查,该厂商识别代码已于1999年XX月XX日注销，请关于产品生产日期

    private String bigPicture;
    private String smallPicture;


    public int getCodeValueStatus() {
        return codeValueStatus;
    }

    public void setCodeValueStatus(int codeValueStatus) {
        this.codeValueStatus = codeValueStatus;
    }

    public String getBigPicture() {
        return bigPicture;
    }

    public void setBigPicture(String bigPicture) {
        this.bigPicture = bigPicture;
    }

    public String getSmallPicture() {
        return smallPicture;
    }

    public void setSmallPicture(String smallPicture) {
        this.smallPicture = smallPicture;
    }

    public Integer getProductMaxIndex() {
        return productMaxIndex;
    }

    public void setProductMaxIndex(Integer productMaxIndex) {
        this.productMaxIndex = productMaxIndex;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

    public String getGtin() {
        return gtin;
    }

    public void setGtin(String gtin) {
        this.gtin = gtin;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public long getBrandId() {
        return brandId;
    }

    public void setBrandId(long brandId) {
        this.brandId = brandId;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getShortDescription() {
        return shortDescription;
    }

    public void setShortDescription(String shortDescription) {
        this.shortDescription = shortDescription;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getDepth() {
        return depth;
    }

    public void setDepth(String depth) {
        this.depth = depth;
    }

    public String getNetContent() {
        return netContent;
    }

    public void setNetContent(String netContent) {
        this.netContent = netContent;
    }

    public String getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(String grossWeight) {
        this.grossWeight = grossWeight;
    }

    public String getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(String netWeight) {
        this.netWeight = netWeight;
    }

    public String getPackagingTypeCode() {
        return packagingTypeCode;
    }

    public void setPackagingTypeCode(String packagingTypeCode) {
        this.packagingTypeCode = packagingTypeCode;
    }

    public String getPackagingMaterialCode() {
        return packagingMaterialCode;
    }

    public void setPackagingMaterialCode(String packagingMaterialCode) {
        this.packagingMaterialCode = packagingMaterialCode;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    @Override
    public String toString() {
        return "ProductInfo{" +
                "codeValue='" + codeValue + '\'' +
                ", codeType='" + codeType + '\'' +
                ", gtin='" + gtin + '\'' +
                ", itemName='" + itemName + '\'' +
                ", brandId=" + brandId +
                ", specification='" + specification + '\'' +
                ", shortDescription='" + shortDescription + '\'' +
                ", description='" + description + '\'' +
                ", height='" + height + '\'' +
                ", width='" + width + '\'' +
                ", depth='" + depth + '\'' +
                ", netContent='" + netContent + '\'' +
                ", grossWeight='" + grossWeight + '\'' +
                ", netWeight='" + netWeight + '\'' +
                ", packagingTypeCode='" + packagingTypeCode + '\'' +
                ", packagingMaterialCode='" + packagingMaterialCode + '\'' +
                ", classCode='" + classCode + '\'' +
                ", extension='" + extension + '\'' +
                ", productMaxIndex=" + productMaxIndex +
                ", codeValueStatus=" + codeValueStatus +
                ", bigPicture='" + bigPicture + '\'' +
                ", smallPicture='" + smallPicture + '\'' +
                '}';
    }
}
